package top.wfzzq.ns;



public class ReaDcoin {
	public static void main(String[] args) {
		/**
		 * 制定币值存放decion矿中
		 */
		DeCoin<Integer> in = new DeCoin<Integer>(100);
		DeCoin<String> c1=new DeCoin<String>("100");
		DeCoin<String> c2=new DeCoin<String>("2");
		DeCoin<String> c3=new DeCoin<String>("30");
		DeCoin<String> c4=new DeCoin<String>("40");
       
       //挖矿次序
       c1.setNext(c2);
       c2.setNext(c3);
       c3.setNext(c4);
       
       //挖矿
       for(DeCoin<String> node=c1; node!=null; node=node.getNext()) {
    	   System.out.println(node.getCoin());//挖出coin币值
       }
	}
}
